﻿using Basic.HrRemoteModel.EmpSignatureFile;
using Basic.HrService.Interface;
using WeDonekRpc.Client.Interface;

namespace Basic.HrService.RpcEvent
{
    internal class EmpSignFileAddEvent : IRpcApiService
    {
        private readonly IEmpSignFileCreateService _Service;

        public EmpSignFileAddEvent ( IEmpSignFileCreateService service )
        {
            this._Service = service;
        }

        public long AddSignFile ( AddSignFile obj )
        {
            return this._Service.Add(obj.Datum);
        }

        public long AddUpSignFile ( AddUpSignFile obj )
        {
            return this._Service.AddUpCert(obj.Datum);
        }
    }
}
